on Navigate
* Called just before a component attempts to navigate to the supplied URL. This method allows for inspection and potential interception of the URL loading request.
The determination to proceed with or cancel the navigation is controlled by the boolean value returned by this method. If true
is returned, the component should proceed with loading the URL. If false
is returned, the component should cancel the navigation attempt.
Note: This callback is for the initial URL request. Subsequent redirects handled internally by the web rendering engine might not trigger this listener again for each step of the redirect chain, depending on the engine's behavior.
Return
true
to allow the component to continue loading the URL, or false
to prevent the navigation and cancel the loading of the resource.
Parameters
The non-null, absolute URL of the web resource that the component is attempting to load.